{% load static %}
{% include 'huiyiyuding/login/base.html' %}
    <div class="login_box">
        <div class="login_l_img"><img src="{% static 'huiyiyuding/images/login-img.png' %}" /></div>
        <div class="login">
            <div class="login_logo"><a href="#"><img src="{% static 'huiyiyuding/images/login_logo.png' %}" /></a></div>
            <div class="login_name">
                <p>{{ title }}</p>
            </div>
            <form action="/login/" method="post">
              {% csrf_token %}
                {%for field in form %}
{#                {% if message %}#}
                    <div class="alert alert-warning"> {{ field.errors }}</div>
                     {{ field.label_tag }}{{ field }}
                     {% if field.help_text %}
                         {{ field.help_text|safe }}
                {% endif %}
                  {% endfor %}
                 <input name="username" type="text"  value="用户名" onfocus="this.value=''" onblur="if(this.value==''){this.value='用户名'}">
                <span id="password_text" onclick="this.style.display='none';document.getElementById('password').style.display='block';document.getElementById('password').focus().select();" >密码</span>
                <input name="password" type="password" id="password" style="display:none;" onblur="if(this.value==''){document.getElementById('password_text').style.display='block';this.style.display='none'};"/>
                <input value="登录" style="width:100%;" type="submit">
            </form>

    </div>
{% include 'huiyiyuding/login/footer.html' %}